<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String url = request.getScheme() + "://" + request.getServerName()
			+ request.getRequestURI();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<title>增减值申报</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<!-- modal页固定调用 -->
		<%@ include file="/html/custom/header.jsp"%>
		<%@ include file="/html/custom/modalHeader.jsp"%>

		<style type="text/css">
		form p {height: auto;}
		</style>
		<script type="text/javascript">
			$(function(){
				$.validator.setDefaults({
					submitHandler: function(form) {
						 //alert("submitted!"); 
						form.submit();
					},
					highlight: function(input) {
						$(input).addClass("ui-state-highlight");
					},
					unhighlight: function(input) {
						$(input).removeClass("ui-state-highlight");
					}
			});
				$("#changeAddForm").validate({
		  rules: {
			'astChangeApply.chageReason': {
				required: true,	
				maxlength:100,
			}
		}
	});   
	// 单价格式化
	var $txtPrice = $("#txtPrice");
	$txtPrice.blur(function() {
				$("#txtPrice").val($.formatCurrency($txtPrice.val()));
		  });
		});
		</script>
	</head>

	<body>
		<div id="content">
			<form id="changeAddForm" method="post" action="/swss/asset/ch_applyChange.action"
				target="_self">
				<fieldset>
				    <p>
						<label for="name">
							处置方式:
						</label>
						<input type="hidden" name="type" value="<s:property value="#request.t" />" />
						<input type="hidden" name="auditNoArray"
							value="<s:property value="#request.auditNoArray" />" />
						<input type="hidden" name="astChangeApply.tableType" value="0" />
						<input type="hidden" name="astChangeApply.applyResult" value="0" />
						<select id="applyMethod" class="ui-widget-content ui-corner-all sel"
							name="astChangeApply.applyMethod">
								<option value="1">增减值</option>
						</select>
					</p>
					<p>
						<label for="name">
							变动数量：
						</label>
						<input type="text" name="astChangeApply.chageastCount" value="1" class="ui-widget-content ui-corner-all txt" title="注： '-' 代表减" />
					</p>
					<p>
						<label for="name">
							变动金额:
						</label>
						<input type="text" id="txtPrice" name="astChangeApply.chagePrice" value="0"  class="ui-widget-content ui-corner-all txt" title="注： '-' 代表减" />
					</p>
					<p>
						<label for="name">
							申请原因：
						</label>
						<textarea name="astChangeApply.chageReason" rows="4" cols="" class="ui-widget-content ui-corner-all txt" ></textarea>

					</p>

				</fieldset>

			</form>

		

		</div>

		<!-- modal也固定页尾 （按钮） -->
		<!-- modal也固定页尾 （按钮） -->
		<div class="btnset clearfix">
			<a id="btnClose" href="#">取消</a>
			<a id="btnReset" href="#">重置</a>
			<a id="btnSave" href="#">提交</a>
		</div>


	</body>
</html>
